<? require(APPPATH.'views/home/header.tpl') ?>
<div class="alert alert-block alert-success fade in">
    <div class="grid-title">
        <h4 class="alert-heading"><i class="icon-ok"></i> OK！</h4>
        <h1><?= $message ?></h1>
        <p class="muted">URL: <?= current_url() ?></p>
        <p class="muted">时间: <?= date('Y-m-d H:i:s') ?></p>
    </div>
    <br>
    <div>
        <? $i=0 ?>
        <? foreach ($links as $name => $url): ?>
            <? if($i===0): ?>
                <button type="button" class="btn btn-primary btn-cons" onclick="$.T.redirect('<?= $url ?>')">
                    <?= $name ?>
                </button>
            <? else: ?>
                <button type="button" class="btn btn btn-cons" onclick="$.T.redirect('<?= $url ?>')">
                    <?= $name ?>
                </button>
            <? endif ?>
            <? $i++ ?>
        <? endforeach ?>
    </div>
</div>
<? require(APPPATH.'views/home/footer.tpl') ?>